package com.artisan.domain.info;

import com.artisan.domain.entity.MAd;
import com.artisan.domain.entity.MAdPosition;

import javax.persistence.Column;

/**
 * 广告内容模型
 */
public class AdInfo {
//    @Column(name = "m_ad")
    private MAd ad;
//    @Column(name = "m_ad_position")
    private MAdPosition adPosition;
    public AdInfo() {

    }

    public AdInfo(MAd ad) {
        MAdPosition adPosition = new MAdPosition();
        this.ad = ad;
        this.adPosition = adPosition;
    }

    public AdInfo(MAdPosition adPosition) {
        MAd ad = new MAd();
        this.ad = ad;
        this.adPosition = adPosition;
    }

    public AdInfo(MAd ad, MAdPosition adPosition) {
        this.ad = ad;
        this.adPosition = adPosition;
    }

    public MAd getAd() {
        return ad;
    }

    public void setAd(MAd ad) {
        this.ad = ad;
    }

    public MAdPosition getAdPosition() {
        return adPosition;
    }

    public void setAdPosition(MAdPosition adPosition) {
        this.adPosition = adPosition;
    }
}
